/********************************************
* Copyrigt (C) rumi
* Module: drv_dh11.h
*********************************************/
#ifndef drv_dh11_H
#define drv_dh11_H
#include "mcu_config.h"
#include "esp_timer.h"
#include "esp_log.h"
#include "drv_pincontrol.h"
#include "esp_rom_sys.h"

typedef enum {
    DHT11_OK = 0,
    DHT11_ERROR_TIMEOUT,
    DHT11_ERROR_CHECKSUM
} Dht11ErrorCode;


//Dht11ErrorCode readDht11Data(gpio_num_t gpioNum, float* temperature, float* humidity);
Dht11ErrorCode readDht11DataSimple(gpio_num_t gpioNum, float* temperature, float* humidity);

#endif // drv_dh11_H
/********************************************
 * End of file
*********************************************/
